<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo ($title); ?></title>
<script type="text/javascript" src="../Public/js/jq.js"></script>
<script>
function check()
{
	if($('#years').val() == '-1')
		{
		alert('请选择要添加的年份');
		return false;
		}
	}

</script>
</head>
<body>
<form action="__URL__/plan_add_years/" onsubmit="return check()">
<input type="hidden" value="<?php echo $_GET["schoolid"];?>" name="schoolid" />
<select name="yearid" id="years">
<option value="-1">请选择您要添加的年份</option>
<?php if(is_array($years)): $i = 0; $__LIST__ = $years;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><option value="<?php echo ($key); ?>"><?php echo ($vo); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
</select>
<input type="submit" value="添加" />
</form>
<table border="1">
<tr><td>编号</td><td>年份</td><td></td></tr>
<?php if(is_array($plan_list)): $i = 0; $__LIST__ = $plan_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr><td><?php echo ($key); ?></td><td><?php echo ($years[$vo[yearid]]); ?></td><td><a href="__URL__/ctl_plan/pid/<?php echo ($vo["id"]); ?>">操作</a></td></tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>
</body>
</html>